package LinkedList_03.Double_Linked_List_04;

/*
 * @Author 罗
 * @date 2020/3/12 - 6:12 下午
 *
 */

public class HeroNode {
    private HeroNode previous;
    private HeroNode next;
    private int id;
    private String name;

    public HeroNode getPrevious() {
        return previous;
    }

    public HeroNode getNext() {
        return next;
    }

    public void setPrevious(HeroNode previous) {
        this.previous = previous;
    }

    public void setNext(HeroNode next) {
        this.next = next;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "HeroNode{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    public HeroNode(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public HeroNode() {
    }
}
